package com.lib.repository;

import com.lib.model.InstallmentRequest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by duqingxiang on 17/5/25.
 */
@Repository
public interface InstallmentRequestRepository extends JpaRepository<InstallmentRequest,Long> {

    public InstallmentRequest findInstallmentRequestByCustomerIdAndAgentIdAndStatusGreaterThanEqual(long customerId,long agentId,int status);

    public List<InstallmentRequest> findInstallmentRequestByCustomerIdAndStatusIn(long customerId,List<Integer> statusList);

}
